<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Flipping Card (AngularJS)</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <script src="//use.typekit.net/tiv5pep.js"></script>
    <script>
        try {
            Typekit.load();
        } catch (e) {}
    </script>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>

    <div ng-app="cardFlipper" ng-controller="AppController">
        <h1>Card Flipping AngularJS</h1>
        <div class="flip-container">
            <div class="flipper" ng-click="flipCard()" ng-class="{'flipToFront':isCardRevealed, 'flipToBack':!isCardRevealed}">
                <div class="back" ng-class="{'face-hidden':hideBackFace}">
                </div>
                <div class="front" ng-class="{'face-hidden':!hideBackFace}">
                    <h1>{{currentCard.title | uppercase}}</h1>
                    <p ng-if="currentCard.icon">{{currentCard.icon}}</p>
                    <br ng-if="currentCard.icon" />
                    <img ng-if="currentCard.imageUrl" src="{{currentCard.imageUrl}}" alt="currentCard.imageAlt" />
                    <p>{{currentCard.description}}</p>
                </div>
            </div>
        </div>

        <footer>
            <div ng-if="currentCard && currentCard.source">
                <a ng-href="{{currentCard.source}}" target="_blank">Source</a>
            </div>
        </footer>
        <br />
        <br />


    </div>
    <script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js'></script>

    <script src="js/index.js"></script>



</body>

</html>